//
//  TextInputModel.h
//  RuiHeApp
//
//  Created by Jun on 2022/11/14.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, TextInputType) {
    TextInputDeflutType            = 0, // 默认样式 仅输入
    TextInputChoiceType            = 1, // 仅下拉选择
    TextInputOrChoiceType          = 2, // 下拉选择+输入
    TextInputOrScanType            = 3, // 扫码+输入
    TextInputunEnabledType         = 4, // 不可编辑，不可输入
    TextInputPasswordType          = 5, // 密码
};



@interface TextInputModel : NSObject

//样式
@property (nonatomic ,assign) TextInputType inputType;
//标题
@property (nonatomic ,copy) NSString *titile;
//标题颜色
@property (nonatomic ,copy) NSString *t_color;
//标题字号
@property (nonatomic ,assign) CGFloat t_font;
//字段名
@property (nonatomic ,copy) NSString *contentKey;
//内容
@property (nonatomic ,copy) NSString *content;

//是否显示快捷清空
@property (nonatomic ,assign) BOOL isShowClear;
//是否密文
@property (nonatomic ,assign) BOOL isSecure;
//密文是否可见
@property (nonatomic ,assign) BOOL isOpen;
//内容颜色
@property (nonatomic ,copy) NSString *c_color;
//内容字号
@property (nonatomic ,assign) CGFloat c_font;
//提示语
@property (nonatomic ,copy) NSString *placeholder;
//正则
@property (nonatomic ,copy) NSString *regular;
//最小长度
@property (nonatomic ,assign) NSInteger minLen;
//最大长度
@property (nonatomic ,assign) NSInteger maxLen;
//选择项---仅针对选择类型
@property (nonatomic ,copy) NSArray *optionList;
//键盘样式
@property (nonatomic ,assign) UIKeyboardType keyboardType;

@end

NS_ASSUME_NONNULL_END
